package net.jonbuck.tassoo.ui.dialog.provider;

import net.jonbuck.tassoo.ui.dialog.model.AttachmentIcon;
import net.jonbuck.tassoo.ui.util.ApplicationImages;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

/**
 * 
 * 
 * @since 1.0.0
 */
public class AttachmentTypesIconLabelProvider implements ITableLabelProvider {

	/**
	 * 
	 */
	public void addListener(ILabelProviderListener listener) {
	}

	/**
	 * 
	 */
	public void dispose() {
	}

	/**
	 * 
	 */
	public boolean isLabelProperty(Object element, String property) {
		return false;
	}

	/**
	 * 
	 */
	public void removeListener(ILabelProviderListener listener) {
	}

	/**
	 * 
	 */
	public Image getColumnImage(Object element, int columnIndex) {
		return ApplicationImages.getImage(((AttachmentIcon) element).getIcon());
	}

	/**
	 * 
	 */
	public String getColumnText(Object element, int columnIndex) {
		return ((AttachmentIcon) element).getName();
	}

}
